import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_feign_material_points_list_entity.g.dart';

///应急物资点列表
@JsonSerializable()
class GetFeignMaterialPointsListEntity {
	GetFeignMaterialPointsListEntity();

	factory GetFeignMaterialPointsListEntity.fromJson(Map<String, dynamic> json) => $GetFeignMaterialPointsListEntityFromJson(json);
	String? companyCode;
	String? contactNumber;
	String? createBy;
	String? createById;
	String? createDate;
	String? deleted;
	List<GetFeignMaterialPointsListDetailsList>? detailsList;
	String? id;
	String? locationOfTheRegion;
	String? nameOfMaterialPoint;
	String? place;
	String? responsiblePerson;
	String? updateBy;
	String? updateById;
	String? updateDate;
  ///需要的字段
  @JSONField(deserialize: false, serialize: false)
  bool checkboxSelected = false;

	Map<String, dynamic> toJson() => $GetFeignMaterialPointsListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetFeignMaterialPointsListDetailsList {

	GetFeignMaterialPointsListDetailsList();

	factory GetFeignMaterialPointsListDetailsList.fromJson(Map<String, dynamic> json) => $GetFeignMaterialPointsListDetailsListFromJson(json);
	String? companyCode;
	String? contactNumber;
	String? createBy;
	String? createById;
	String? createDate;
	String? deleted;
	String? id;
	String? locationOfTheRegion;
	String? materialClassification;
	String? materialClassificationName;
	String? materialName;
	String? materialPhotos;
	String? materialPointId;
	String? materialPointIdName;
	String? place;
	String? purpose;
	int? quantity;
	String? responsiblePerson;
	String? transportationAndStorageRequirements;
	String? updateBy;
	String? updateById;
	String? updateDate;
	String? usageRecord;
	List<GetFeignMaterialPointsListDetailsListUsedRecordVos>? usedRecordVos;
	String? validityPeriod;

	Map<String, dynamic> toJson() => $GetFeignMaterialPointsListDetailsListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetFeignMaterialPointsListDetailsListUsedRecordVos {

	GetFeignMaterialPointsListDetailsListUsedRecordVos();

	factory GetFeignMaterialPointsListDetailsListUsedRecordVos.fromJson(Map<String, dynamic> json) => $GetFeignMaterialPointsListDetailsListUsedRecordVosFromJson(json);
	String? date;
	int? num;

	Map<String, dynamic> toJson() => $GetFeignMaterialPointsListDetailsListUsedRecordVosToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
